{% extends "public/layout.html" %}
{% load bootstrap3 %}
{% block body %}
    <h3 class="page-header">权限管理</h3>
    <table class="table table-striped">
        <caption>
            <div class="col-md-8">
                <a  class="btn btn-primary" id="create-user-id">创建用户</a>
            </div>
            <div class="col-md-4">
                <form class="form-inline">
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" name="search_username" value="{{ search_data }}" class="form-control" >
                        </div>
                    </div>
                    <button type="submit" class="btn btn-primary">搜索</button>
                </form>
            </div>
        </caption>
        <thead>
        <tr>
            <th>#</th>
            <th>app名</th>
            <th>模型名</th>
            <th>权限名</th>
            <th>权限别名</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for obj in object_list %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ obj.content_type.app_label }}</td>
                <td>{{ obj.content_type.model }}</td>
                <td>{{ obj.codename }}</td>
                <td>{{ obj.name }}</td>
                <td>
                    <button class="btn btn-primary">修改</button>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>


    {% include "public/pagination.html" %}

{% endblock %}